<%--
  Created by IntelliJ IDEA.
  User: dujiajiyi
  Date: 13-12-19
  Time: 下午10:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<% pageContext.setAttribute("ctx",request.getContextPath());%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>${blog.name}</title>
</head>
<body>
        <div class="col-sm-8 blog-main">
            <c:forEach items="${page.list}" var="e">
            <div class="blog-post">
                <h2 class="blog-post-title"><a href="${ctx}/toEntry/${e.category.id}/${e.id}">${e.title}</a></h2>

                <p class="blog-post-meta">
                分类：<a href="${ctx}/?cid=${e.category.id}">${e.category.name}</a>&nbsp;&nbsp;
                <fmt:formatDate value="${e.createdTime}" pattern="yyyy:MM:dd HH:mm:ss " />&nbsp;&nbsp;
                <a href="#">浪子</a>&nbsp;&nbsp;点击量：${e.hits}</p>
                <p>${e.content}</p>
            </div>
            </c:forEach>
            <!-- /.blog-post -->

            <hr>

            <ul class="pager">
                <li><a href="#">上一页</a></li>
                <li><a href="#">下一页</a></li>
            </ul>

        </div>
        <!-- /.blog-main -->
</body>
</html>